<hibernate-configuration>
    <session-factory>
        <!--<property name="connection.url">jdbc:h2:~/test</property>-->
        <!--<property name="connection.driver_class">org.h2.Driver</property>-->
        <!--<property name="connection.username">sa</property>-->
        <!--<property name="connection.password"/>-->
        <!--<property name="dialect">org.hibernate.dialect.H2Dialect</property>-->
        <!---->
        <property name="connection.url">jdbc:mysql://localhost:3306/Lessons</property>
        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="connection.username">root</property>
        <property name="connection.password">1</property>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>

        <property name="cache.use_second_level_cache">true</property>
        <property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory</property>

        <property name="show_sql">true</property>
        <property name="hbm2ddl.auto">update</property>
        <!--<mapping resource="entities/Book.hbm.xml" />-->
        <!--<mapping class="entities.Student" />-->
        <!--<mapping class="entities.Person" />-->
        <!--<mapping class="entities.HomeAddress" />-->
        <mapping class="entities.hierarchies.Car" />
        <!--<mapping class="entities.User" />-->
        <!--<mapping class="entities.Role" />-->
        <!--<mapping class="entities.hierarchies.Toyota" />-->
        <!--<mapping class="entities.hierarchies.Opel" />-->
    </session-factory>
</hibernate-configuration>